package com.xyht.sca_s.student_manage_system.modules.visitor.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2023-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_visitor_user")
@ApiModel(value="SmsVisitorUser对象", description="")
public class SmsVisitorUserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "游客头像")
    private String visitorHeadPortrait;

    @ApiModelProperty(value = "游客姓名")
    private String visitorName;

    @ApiModelProperty(value = "游客电话")
    private String visitorPhone;

    @ApiModelProperty(value = "游客微信id")
    private String visitorOpenId;

    @ApiModelProperty(value = "token")
    private String token;


    @ApiModelProperty(value = "是否注册")
    private Boolean isRegister;

    private String sessionKey;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


}
